<%-- 
    Document   : mostrarEscrutinio
    Created on : 20-ene-2015, 9:48:09
    Author     : -
--%>

<%@page import="CapaDao.Partidos"%>
<%@page import="java.util.ArrayList"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>

<% ArrayList <Partidos> ArrayEscrutinio=(ArrayList)session.getAttribute("CerrarEscrutinio"); %> 

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Censo electoral</title>
        <link rel="stylesheet" type="text/css" href="./css/estilos_1.css">
    </head>
    <body>
        <div id="contenedor">
            <header>
                <h1>CENSO ELECTORAL</h1>
            </header>
            <article>
                <section>
                    <table>
                        <tr>
                            <th>Nombre</th>
                            <th>votos</th>
                        </tr>
                        <%  
                            for(int i=0;i<ArrayEscrutinio.size();i++){
                                %>
                                <tr>
                                    <td><%=ArrayEscrutinio.get(i).getNombre()%></td> 
                                    <td><%=ArrayEscrutinio.get(i).getN_voto()%></td>
                                </tr>
                                <%
                            }
                        %>
                    </table>
                </section>
            </article>
        </div>
    </body>
</html>